try {
	//委外到货
	Type.registerNamespace('SCorderInVO');
	//委外订单VO
	SCorderInVO = function() {};
	SCorderInVO.prototype = new NCMMPubUtil.SuperVO();
	//委外订单主键**
	SCorderInVO.PK_ORDER = {
		name: "pk_order",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//委外单号
	SCorderInVO.VBILLCODE = {
		name: "vbillcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//单据日期
	SCorderInVO.DBILLDATE = {
		name: "dbilldate",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//采购部门
	SCorderInVO.PK_DEPT_NAME = {
		name: "pk_dept_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//委外订单明细**
	SCorderInVO.PK_ORDER_B = {
		name: "pk_order_b",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//物料
	SCorderInVO.PK_MATERIAL = {
		name: "pk_material",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//物料编码
	SCorderInVO.MATERIALCODE = {
		name: "materialcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//物料名称
	SCorderInVO.MATERIALNAME = {
		name: "materialname",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//规格
	SCorderInVO.MATERIALSPEC = {
		name: "materialspec",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//型号
	SCorderInVO.MATERIALTYPE = {
		name: "materialtype",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//物料简称
	SCorderInVO.MATERIALSHORTNAME = {
		name: "materialshortname",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//可入库主数量
	SCorderInVO.NNUM = {
		name: "nnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//可入库数量
	SCorderInVO.NASTNUM = {
		name: "nastnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//主单位
	SCorderInVO.CUNITID = {
		name: "cunitid",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//主单位名称
	SCorderInVO.CUNITID_NAME = {
		name: "cunitid_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//辅单位
	SCorderInVO.CASTUNITID = {
		name: "castunitid",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//辅单位名称
	SCorderInVO.CASTUNITID_NAME = {
		name: "castunitid_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//换算率
	SCorderInVO.VCHANGERATE = {
		name: "vchangerate",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};

	//表头ts
	SCorderInVO.HTS = {
		name: "hts",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};

	//供应商名称
	SCorderInVO.PK_SUPPLIER_NAME = {
		name: "pk_supplier_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//供应商
	SCorderInVO.PK_SUPPLIER = {
		name: "pk_supplier",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//收货组织
	SCorderInVO.PK_STOCKORG = {
		name: "pk_stockorg",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//收货仓库**
	SCorderInVO.PK_RECVSTORDOC = {
		name: "pk_recvstordoc",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//收货仓库名称**
	SCorderInVO.PK_RECVSTORDOC_NAME = {
		name: "pk_recvstordoc_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//表体ts
	SCorderInVO.BTS = {
		name: "bts",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//批次号编码
	SCorderInVO.VBATCHCODE = {
		name: "vbatchcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//批次号
	SCorderInVO.PK_BATCHCODE = {
		name: "pk_batchcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//已扫描主数量
	SCorderInVO.NSCANEDNUM = {
		name: "nscanednum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//已扫描数量
	SCorderInVO.NSCANEDASTNUM = {
		name: "nscanedastnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//行号
	SCorderInVO.CROWNO = {
		name: "crowno",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//业务员**
	SCorderInVO.CEMPLOYEEID = {
		name: "cemployeeid",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//**
	SCorderInVO.CEMPLOYEEID_NAME = {
		name: "cemployeeid_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};

	SCorderInVO.prototype.getAllAttrs = function() {
		return [
			SCorderInVO.PK_ORDER,
			SCorderInVO.PK_ORDER_B,
			SCorderInVO.MATERIALNAME,
			SCorderInVO.NNUM,
			SCorderInVO.NASTNUM,
			SCorderInVO.VBILLCODE,
			SCorderInVO.DBILLDATE,
			SCorderInVO.HTS,
			SCorderInVO.PK_SUPPLIER_NAME,
			SCorderInVO.PK_STOCKORG,
			SCorderInVO.PK_RECVSTORDOC,
			SCorderInVO.PK_RECVSTORDOC_NAME,
			SCorderInVO.PK_MATERIAL,
			SCorderInVO.MATERIALSPEC,
			SCorderInVO.MATERIALTYPE,
			SCorderInVO.MATERIALSHORTNAME,
			SCorderInVO.MATERIALCODE,
			SCorderInVO.PK_DEPT_NAME,
			SCorderInVO.BTS,
			SCorderInVO.CASTUNITID,
			SCorderInVO.CASTUNITID_NAME,
			SCorderInVO.CUNITID,
			SCorderInVO.CUNITID_NAME,
			SCorderInVO.VCHANGERATE,
			SCorderInVO.VBATCHCODE,
			SCorderInVO.PK_BATCHCODE,
			SCorderInVO.NSCANEDNUM,
			SCorderInVO.NSCANEDASTNUM,
			SCorderInVO.CROWNO,
			SCorderInVO.CEMPLOYEEID,
			SCorderInVO.CEMPLOYEEID_NAME
		];
	};

	SCorderInVO.prototype.getTableName = function() {
		return "sc_orderin";
	};
	SCorderInVO.prototype.getPrimaryAttr = function() {
		return SCorderInVO.PK_ORDER_B;
	};
} catch(e) {
	$e(e);
}